<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        div{
            margin: 2px;
        }
        div.a{

            float: left;
            height: 200px;
            width: 200px;
            background-color: red;
            color: #000033;
        }

    </style>
</head>
<body>
<div>
    <div class="a">1</div>
    <div class="a">2</div>
    <div class="a">3</div>
    <div class="a">4</div>
    <div class="a">5</div>
    <div class="a">6</div>
    <div class="a">7</div>
    <div class="a">8</div>
    <div class="a">9</div>

</div>
</body>
</html>